package com.xiaoyu.shenyou.shenyouv1.services.impl;

import com.xiaoyu.shenyou.shenyouv1.entity.NoticeEntity;
import com.xiaoyu.shenyou.shenyouv1.mapper.NoticesMapper;
import com.xiaoyu.shenyou.shenyouv1.services.NoticesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class NoticesServiceImpl implements NoticesService {

    @Autowired
    private NoticesMapper noticesMapper;

    @Override
    public NoticeEntity queryNotices(int type) {
        NoticeEntity notice = noticesMapper.queryNotices(type);
        return notice;
    }
}
